<?php 
	echo $this->headTitle ( 'Sign Up' );
?>

<script>
	function validatePassword () {
		if (dijit.byId("password").value != dijit.byId("confirmPassword").value) {
			alert('Password does not match confirmation');
			dojo.byId("confirmPassword").value = "";
		}
	}
</script>

<div id="form-container">
<h2>Sign Up</h2>
<br />
<?php if (!empty($this->formError)): ?>
<div class="form_errors_block">
	<img src="<?php echo $this->linkTo(null,null); ?>images/icons/error.png" alt=""/>
	<p class="message"><?php echo $this->formError; ?></p>
</div>
<?php endif; ?>
<?php if (!empty($this->formSucces)): ?>
<div class="form_succes_block">
	<img src="<?php echo $this->linkTo(null,null); ?>images/icons/succes.png" alt=""/>
	<p class="message"><?php echo $this->formSucces; ?></p>
</div>
<?php endif; ?>
<div id="separator"><!-- not empty --></div>
<?php echo $this->form; ?>
</div>